<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Hong
  Date: 2020/12/8
  Time: 8:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>mood page here</title>
</head>
<body>

<b>说说列表：</b><br>
<c:forEach items="${moods}" var="mood">
    ---------------------------
    <br>
    <b>用户：</b><span id="account">${mood.userName}</span><br>
    <b>说说内容：</b><span id="content">${mood.content}</span><br>
    <b>发布时间：</b><span id="publish_time">${mood.publishTime}</span><br>
    <b>点赞数：</b><span id="praise_num">${mood.praiseNum}</span><br>
    <div style="margin-left: 350px">
<%--        传统点赞请求--%>
<%--        <a id="praise" href="/mood/${mood.id}/praise?userId=${mood.userId}">赞</a>--%>
<%--    引入redis缓存的点赞请求--%>
        <a id="praise" href="/mood/${mood.id}/praiseForRedis?userId=${mood.userId}">Redis赞赞！</a>

    </div>

</c:forEach>

</body>
</html>
